import type { App } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import { rootPageRoute } from './base'

const constantRoutes = [rootPageRoute]
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: constantRoutes
})

export function setupRouter(app: App<Element>) {
  app.use(router)
}

export default router
